
namespace JTZY.Model.Goods
{
    /// <summary>
    /// 良品仓
    /// </summary>
    [SugarTable("corecmsuserstock")]
    public class Corecmsuserstock
    {
        /// <summary>
        /// 序列 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// 商品序列 
        /// </summary>
        public int GoodId { get; set; }

        /// <summary>
        /// 货品序列 
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 成本价 
        /// </summary>
        public decimal ProductCostPrice { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 是否删除 
        /// </summary>
        public bool IsDel { get; set; }

        /// <summary>
        /// 库存 
        /// </summary>
        public int? Stock { get; set; }

        /// <summary>
        /// 是否上架 
        /// </summary>
        public int? Marketable { get; set; }

        /// <summary>
        /// 普通客户价格 
        /// </summary>
        public decimal Vip0 { get; set; }

        /// <summary>
        /// VIP1客户价格 
        /// </summary>
        public decimal Vip1 { get; set; }

        /// <summary>
        /// VIP2价格 
        /// </summary>
        public decimal Vip2 { get; set; }

        /// <summary>
        /// VIP3价格 
        /// </summary>
        public decimal Vip3 { get; set; }

        /// <summary>
        /// VIP4价格 
        /// </summary>
        public decimal Vip4 { get; set; }

        /// <summary>
        /// 小仓 
        /// </summary>
        public int? MinStock { get; set; }

        /// <summary>
        /// UserId 
        /// </summary>
        public long? UserId { get; set; }

        /// <summary>
        /// 警戒库存 
        /// </summary>
        public int? StockWarn { get; set; }

        /// <summary>
        /// 入库位置 
        /// </summary>
        public string SkuLocation { get; set; }

        /// <summary>
        /// SKU图片 
        /// </summary>
        public string SkuImage { get; set; }

        /// <summary>
        /// 品牌 
        /// </summary>
        public int? SkubrandId { get; set; }

        /// <summary>
        /// 库存采购指标 
        /// </summary>
        public int? PurStock { get; set; }

        /// <summary>
        /// 销售库存 
        /// </summary>
        public int? SaleStock { get; set; }

        /// <summary>
        /// 普通客户增加价格 
        /// </summary>
        public decimal? InvalVip0 { get; set; }

        /// <summary>
        /// VIP1增值价格 
        /// </summary>
        public decimal? InvalVip1 { get; set; }

        /// <summary>
        /// VIP2增值价格 
        /// </summary>
        public decimal? InvalVip2 { get; set; }

        /// <summary>
        /// VIP3增值价格 
        /// </summary>
        public decimal? InvalVip3 { get; set; }

        /// <summary>
        /// VIP4增值价格 
        /// </summary>
        public decimal? InvalVip4 { get; set; }

        /// <summary>
        /// 累计销量
        /// </summary>
        public int? SaleQty { get; set; }
        /// <summary>
        /// sku名称
        /// </summary>
        public string SkuName { get; set; }
        public string Sn { get; set; }
        public string BarCode { get; set; }
        public int FreezeStock { get; set; } = 0;

        public int stockWarnType { get; set; } = -1;

    }
}